<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<c:choose>
	<c:when test="${boardList != null && fn:length(boardList) != 0 }">
		<c:forEach var="board" items="${boardList}">
			<tr>
				<td>${board.boardId}</td>
				<td><a href="/board/view/${board.boardType}/${board.boardId}.do">${board.boardTitle}</a></td>
				<td>${board.registrationDay}</td>
				<td>${board.boardWriter}</td>
			</tr>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<tr>
			<td colspan="4" style="text-align:center"> 등록 된 게시물이 없습니다. </td>
		</tr>
	</c:otherwise>
</c:choose>